package com.luotf.model;

import java.util.ArrayList;
import java.util.List;

public class Menu {
    private Integer id;

    private String menuName;

    private String url;

    private Integer parentmenuId;

    private Integer isstair;
    
    private List<Menu> childmenu = new ArrayList<Menu>();
    
    

    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public String getMenuName() {
        return menuName;
    }

    public void setMenuName(String menuName) {
        this.menuName = menuName;
    }

    public String getUrl() {
        return url;
    }

    public void setUrl(String url) {
        this.url = url;
    }

    public Integer getParentmenuId() {
        return parentmenuId;
    }

    public void setParentmenuId(Integer parentmenuId) {
        this.parentmenuId = parentmenuId;
    }

    public Integer getIsstair() {
        return isstair;
    }

    public void setIsstair(Integer isstair) {
        this.isstair = isstair;
    }

	@Override
	public String toString() {
		return "Menu [id=" + id + ", menuName=" + menuName + ", url=" + url + ", parentmenuId=" + parentmenuId
				+ ", isstair=" + isstair + ", childmenu=" + childmenu + "]";
	}

	public List<Menu> getChildmenu() {
		return childmenu;
	}

	public void setChildmenu(List<Menu> childmenu) {
		this.childmenu = childmenu;
	}

	public Menu(Integer id, String menuName, String url, Integer parentmenuId, Integer isstair, List<Menu> childmenu) {
		this.id = id;
		this.menuName = menuName;
		this.url = url;
		this.parentmenuId = parentmenuId;
		this.isstair = isstair;
		this.childmenu = childmenu;
	}
    
	public Menu() {
		
	}
    
}